package ClientCommands;

import java.io.IOException;
import java.util.HashMap;
import java.util.Map;

import org.json.simple.JSONObject;

import Annotations.IsClientCommand;
import Commands.ClientCommandBase;
import Commands.ExecuteMethod;

@IsClientCommand
public class InitialiseClientConstants extends ClientCommandBase<Map<String, String>> {

	public InitialiseClientConstants()
	{
		setCommandName("InitialiseClientConstants");
		setCommandDescription("ConstantsInitializer");
		setExecuteMethod(ExecuteMethod.ServerOnly);
	}
	@Override
	protected void ExecuteInternal() throws IOException {
		Map<String, String> clientConstants = new HashMap<String, String>();
        clientConstants.put("QueryPage", "target");
        clientConstants.put("QueryViewId", "ViewId");
        clientConstants.put("BodyNotificationCounter", "show all");     

        setResult(clientConstants);  
	}

	public void FillFromJSON(JSONObject jobj) {
		super.FillFromJSON(jobj);
		
	}
	
	public String toJSONString()
	{
		return super.toJSONString();
	}

}
